package cn.edu.xmu.orderpayment.order.microservice.service;

import cn.edu.xmu.orderpayment.order.microservice.retvo.AdvanceActRetVo;
import cn.edu.xmu.orderpayment.order.microservice.retvo.AdvanceSaleRetVo;
import cn.edu.xmu.orderpayment.order.microservice.retvo.GrouponActRetVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Yujie Lin
 * @date 2021/12/8 17:49
 */
@FeignClient("activity-service")
public interface ActivityService {

    @GetMapping("internal/grouponactivities/{id}")
    InternalReturnObject<GrouponActRetVo> getGrouponActById(@PathVariable Long id);

//    @GetMapping("internal/advancesales/{id}")
    @GetMapping("internal/advancesales/{id}")
    InternalReturnObject<AdvanceSaleRetVo> getAdvanceActById(@PathVariable Long id);
}
